dictionary   = dict(x=10, y=15, hello="goodbye")
print dictionary

#Dictionaries from keyword arguments
dictionary2  = dict(inner=dict(x=10, y=20))
print dictionary2

#Dictionaries from dictionaries
mydict       = {"x": 10, "y": 20}
#newdict is not a copy of mydict, but a reference!
newdict      = mydict
print newdict
newdict['x'] = 0
print newdict
print mydict

dictionary = {'jacek': 4098, 'placek': 4127}
print dictionary.keys()
print dictionary.values()

#dictionary as iterable object
#<type 'dict'>
dictionary = {'jacek': 4098, 'placek': 4127}
print type(dictionary)
print dictionary['jacek']
for arg in  dictionary:
    print dictionary[arg]
